#include "TcpConnection.h"
#include "Acceptor.h"
#include "EventLoop.h"
int main(){
    Acceptor acc("192.168.2.57",12345);
    acc.ready();
    EventLoop loop(acc);
    loop.loop();
    // TcpConnection conn(acc.m_accept());
    // while(1){
    //     cout<<"recv msg from client:"<<conn.receive()<<endl;
    //     //这个receive里面有一个换行符，需要换行符才能readline出来
    //     conn.send("hello baby\n");
    // }
    return 0;
}